package br.edu.ufcg.dsc.actions.user;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts2.config.ParentPackage;
import org.apache.struts2.config.Result;
import org.apache.struts2.dispatcher.ServletDispatcherResult;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;

@ParentPackage(value = "myPackage")
@Result(name = "success", type = ServletDispatcherResult.class, value = "/jsp/user/searchUser.jsp")
public class IndexSearchUserAction extends ActionSupport implements Preparable {

	private static final long serialVersionUID = 1L;
	private List<String> searchBy;

	public void prepare() throws Exception {

		searchBy = new ArrayList<String>();

		searchBy.add("CPF");
		searchBy.add("Login");
		searchBy.add("RG");
		searchBy.add("Type");
	}

	public List<String> getSearchBy() {
		return searchBy;
	}
}